
var vm = new Vue({
    el: '#rrapp',
    data: {
        data:'',
    },
    mounted:function(){
      //this.date=new Date().getFullYear()+"年"+(new Date().getMonth()+1)+"月"+new Date().getMonth()+"日";
        this.initData()
    },
    methods: {

        //初始化数据
        initData:function () {
            $.ajax({
                type: "GET",
                url: baseURL + "/main/index",
                contentType: "application/json",
                success: function(r){
                    if(r.code === 0){
                        vm.data=r.list;

                    }else{
                        alert(r.msg);
                    }
                }
            });
        }
    }
});